<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


//nao sei com usa isso
class erro extends CI_Controller{
	public function __construct(){
		parent::__construct();
	}
	
	public function erro_404(){
		$eu = $_SERVER['HTTP_HOST'];
		$url = "http://www.igorsistemas.com.br/erro/erro.php";
		$curl = curl_init($url);
		$tipo = isset($_GET['erro']) ? $_GET['erro'] : "";
		$post = "deonde=".$eu."&tipo=".$tipo;
		curl_setopt ($curl, CURLOPT_POST, true);
		curl_setopt ($curl, CURLOPT_POSTFIELDS, $post);
		curl_setopt ($curl, CURLOPT_RETURNTRANSFER, true);
		$page = curl_exec ($curl);
		curl_close($curl);
		echo $page;
		exit();
		
	}
}

?>